<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    // 箭头函数 
    // 1. 匿名函数  2. 省略function, () =>  3.形参只有一个 ()省略 4.执行语句只有一条,且 return =>省略 {} 和 return

    //注意:
    // 1. 没有arguments   => Rest参数(...逆应用)
    // 2. 没有自己的this指向 -> 找父作用域

    // let double = v => v * 2;
    // let fn = (...list) => {

    // };


    // 解构赋值 
    // var [a, [b], [[c], [d]]] = [1, [2], [[3], [4]]];
    // console.log(a, b, c, d);

    var zhang = {
        name: "张三",
        age: 18,
        info: {
            height: "172cm",
            weight: "70kg"
        },
        grade: {
            ch: 55,
            mh: 66,
            eh: 77
        },
        hobby: ["sing", "dance", "rap"]
    }

    // var { name, age, info, grade, hobby } = zhang;
    // console.log(name, age, info, grade, hobby);

    // 如果需要对 对象中的数据进行二次解构 => 对应键名解构键值
    // var { name, age, "info": { height, weight }, grade, hobby } = zhang;
    // console.log(name, age, info, grade, hobby);


    // Symbol()  => ES6新增数据类型(值类型) 

    var s = Symbol();   // 独一无二的值
    






</script>

</html>